package com.mccrea.pattern.observer;

/**
 * @Classname WeiXinUser
 * @Description 微信用户观察者
 * @Date 2021/5/21 0021 17:10
 * @Created by Mccrea_Gao
 */
public class WeiXinUser implements Observer {

    private String name;

    public WeiXinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
